package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class TUploadBase{
	boolean[] modified=new boolean[12];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public TUploadBase(){}
	public TUploadBase(java.lang.Long userId,java.lang.Long uploadId,java.lang.Long projectId,java.lang.Long categoryId,java.lang.Long folderId,java.lang.Integer state,java.util.Date uploadDate,java.util.Date lastDownload,java.lang.String name,java.lang.Long size,java.lang.Integer publicPolicy,java.lang.String filetype){
		setUserId(userId);
		setUploadId(uploadId);
		setProjectId(projectId);
		setCategoryId(categoryId);
		setFolderId(folderId);
		setState(state);
		setUploadDate(uploadDate);
		setLastDownload(lastDownload);
		setName(name);
		setSize(size);
		setPublicPolicy(publicPolicy);
		setFiletype(filetype);
	}
	public void setUserId(java.lang.Long userId){
		if(userId!=null) {
			set("userId",userId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getUserId(){
		return (java.lang.Long)get("userId");
	}
	public void setUploadId(java.lang.Long uploadId){
		if(uploadId!=null) {
			set("uploadId",uploadId);
			this.modified[1] =true;
		}
	}
	public java.lang.Long getUploadId(){
		return (java.lang.Long)get("uploadId");
	}
	public void setProjectId(java.lang.Long projectId){
		if(projectId!=null) {
			set("projectId",projectId);
			this.modified[2] =true;
		}
	}
	public java.lang.Long getProjectId(){
		return (java.lang.Long)get("projectId");
	}
	public void setCategoryId(java.lang.Long categoryId){
		if(categoryId!=null) {
			set("categoryId",categoryId);
			this.modified[3] =true;
		}
	}
	public java.lang.Long getCategoryId(){
		return (java.lang.Long)get("categoryId");
	}
	public void setFolderId(java.lang.Long folderId){
		if(folderId!=null) {
			set("folderId",folderId);
			this.modified[4] =true;
		}
	}
	public java.lang.Long getFolderId(){
		return (java.lang.Long)get("folderId");
	}
	public void setState(java.lang.Integer state){
		if(state!=null) {
			set("state",state);
			this.modified[5] =true;
		}
	}
	public java.lang.Integer getState(){
		return (java.lang.Integer)get("state");
	}
	public void setUploadDate(java.util.Date uploadDate){
		if(uploadDate!=null) {
			set("uploadDate",uploadDate);
			this.modified[6] =true;
		}
	}
	public java.util.Date getUploadDate(){
		return (java.util.Date)get("uploadDate");
	}
	public void setLastDownload(java.util.Date lastDownload){
		if(lastDownload!=null) {
			set("lastDownload",lastDownload);
			this.modified[7] =true;
		}
	}
	public java.util.Date getLastDownload(){
		return (java.util.Date)get("lastDownload");
	}
	public void setName(java.lang.String name){
		if(name!=null) {
			set("name",name);
			this.modified[8] =true;
		}
	}
	public java.lang.String getName(){
		return (java.lang.String)get("name");
	}
	public void setSize(java.lang.Long size){
		if(size!=null) {
			set("size",size);
			this.modified[9] =true;
		}
	}
	public java.lang.Long getSize(){
		return (java.lang.Long)get("size");
	}
	public void setPublicPolicy(java.lang.Integer publicPolicy){
		if(publicPolicy!=null) {
			set("publicPolicy",publicPolicy);
			this.modified[10] =true;
		}
	}
	public java.lang.Integer getPublicPolicy(){
		return (java.lang.Integer)get("publicPolicy");
	}
	public void setFiletype(java.lang.String filetype){
		if(filetype!=null) {
			set("filetype",filetype);
			this.modified[11] =true;
		}
	}
	public java.lang.String getFiletype(){
		return (java.lang.String)get("filetype");
	}
}
